﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.Qualification
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.Qualification;

    public class MapQualificationDetails : EntityMapping<QualificationDetails>
    {
        public MapQualificationDetails()
        {
            //企业资质记录
            ManyToOne(x => x.Qualification, map =>
            {
                map.Column("QualificationId");
            });

            //资质要求
            Property(x => x.Details_Require, map =>
            {
                map.Length(80000000);
            });

            //业务范围
            Property(x => x.Details_Range, map =>
            {
                map.Length(80000000);
            });

            //备注
            Property(x => x.Details_Remark, map =>
            {
                map.Length(500);
            });
        }
    }
}
